package com.hzd.web;

import ablaze.framework.api.result.ExecuteResult;
import ablaze.framework.web.BaseController;
import com.hzd.entity.RentApplyOrg;
import com.hzd.service.RentApplyOrgService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author christ
 * @date 2015/10/23
 */
@Controller
@RequestMapping(value = "/rentApplyOrg")
public class RentApplyOrgController extends BaseController {

    @Autowired
    private RentApplyOrgService rentApplyOrgService;


    /**
     * 企业团购申请
     *
     * @param apply
     * @return
     */
    @RequestMapping("/orgApply")
    @ResponseBody
    public ExecuteResult orgApply(RentApplyOrg apply) {

        return rentApplyOrgService.orgApply(apply);
    }
}
